/*
 * Copyright (c) 2017,TravelSky. 
 * All Rights Reserved.
 * TravelSky CONFIDENTIAL
 * 
 */
package com.flightcloud.ssm.configure;

import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.annotation.SchedulingConfigurer;
import org.springframework.scheduling.config.ScheduledTaskRegistrar;

/**
 * @description:  <br/>
 * @date: 2017年1月25日 上午11:21:01 <br/>
 * @author chenjj<br/>
 * 
 *
 */
public class SimpleSchedulingConfigurer implements SchedulingConfigurer{

    private TaskScheduler taskScheduler;
    
    public SimpleSchedulingConfigurer(TaskScheduler taskScheduler) {
        this.taskScheduler = taskScheduler;
    }

    @Override
    public void configureTasks(ScheduledTaskRegistrar taskRegistrar) {
        taskRegistrar.setTaskScheduler(taskScheduler);
    }

}
